package com.speechb.modules.system.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author llj
 * @since 2019-10-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_menu")
public class SysMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    private String text;

    private String create_time;

    private String update_time;

    /**
     * 越低排名越高
     */
    private Integer sorting;

    private Integer parent_id;

    private String icon;

    private String url;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer status;
    List<SysMenu> children;
    Boolean isHeader = null;
    private String targetType;

}
